package com.chinaso.kotlinprojcet

import java.net.URL

/**
 * Created by Administrator on 17-11-24.
 */
class Request(val url: String) {

    companion object {
//        val BASE_URL = "http://gank.io/api/"  //data/all/20/2
        val BASE_URL = "http://mob.chinaso.com/"
    }

    fun run(): String {
        val resultStr = URL(url).readText()
        return resultStr
    }
}